package sw.test;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

import com.wsw.cxf.IWebServiceTest;


public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String address = "http://localhost:8081/wssh2/ws/webServiceTest?wsdl"; //此处最好用系统参数
		JaxWsProxyFactoryBean bean = new JaxWsProxyFactoryBean();
		bean.setAddress(address);
		bean.setServiceClass(IWebServiceTest.class);
		IWebServiceTest ws = (IWebServiceTest) bean.create();
		System.out.println(ws.helloWs("wsw"));
	}

}
